import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import menu from './modules/menu'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    user,
    menu
  },
  getters: {
    token: state => state.user.token,
    userInfo: state => state.user.userInfo
  }
}) 